// Copyright 2019 JDAI Inc.
// License ()
// Author:  XXXXXXX (), XXXX@jd.com
// Filename:  IHotel.h
// Description:
// Created:  08/23/21 17:43:21
// Version:  1.0
// Company:  JDAI

#ifndef IHotel_H_
#define IHotel_H_
#include "PowerAdapter.h"
#include "Common.h"
#include "ISocket.h"
#include <memory>
using std::shared_ptr;

class IHotel;
typedef shared_ptr < IHotel > IHotelSPtr;

class IHotel {
public:
    IHotel();
    virtual ~IHotel();
    virtual bool Charging() = 0;
    bool SetAdapter(PowerAdapterSPtr& powerAdapter);

protected:
    bool SetSocket(ISocketSPtr& socket);

protected:
    //PowerAdapter* mpPowerAdapter;
    PowerAdapterSPtr mspPowerAdapter;
    ISocketSPtr mspSocket;
};

#endif
